package edu.hgnc.selfAutowired;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {

	private static final Log log = LogFactory.getLog(UserController.class);

	@AutoGet
	private UserService userService;


	public void queryUsername(){

		String username = userService.queryUsername();
		if (log.isInfoEnabled()){
			log.info("===========================================");
			log.info("用户名是:"+username);
			log.info("===========================================");
		}
	}
}
